#ifndef __AHT21_H
#define __AHT21_H

#include "main.h"
#include "myiic.h"


#define AHT_CLK_ENABLE	__HAL_RCC_GPIOB_CLK_ENABLE()


#define AHT_ADDRESS		0x38

extern iic_bus_struct aht21_iic_struct;



u8 AHT_Read_Status(void);
void AHT_Reset(void);
u8 AHT_Init(void);
uint8_t AHT_Read(float *humi, float *temp);




#endif
